package com.sunnada.edu.business.attendance.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

@Service
@Transactional
public interface PieceQueryService {
	/***
	 * explain 总数量
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return int
	 */
	public int getPieceQueryCots(HashMap<String, String> params);

	/**
	 * explain 查询功能
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return List<?>
	 */
	public List<?> findPieceQuery(HashMap<String, String> params);

	/***
	 * explain 用户删除
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public String attendanceDelete(HashMap<String, String> params);

	/**
	 * explain 用户添加保存
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public String attenRecordAdd(HashMap<String, String> params);

	/**
	 * explain 用户修改保存
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public String attendanceUpdate(HashMap<String, String> params);

	/**
	 * explain 获得用户信息
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return Map
	 */
	public Map attendanceByRecId(HashMap<String, String> params);

	/**
	 * 按条件导出系统用户
	 * 
	 * @author chs 2015-5-12 update chs 2015-5-12
	 * @param params
	 * @return List<?>
	 * @throws Exception
	 */
	public void exportPiece(HashMap<String, String> params, HttpServletRequest request, HttpServletResponse response) throws Exception;

	
}
